package com.wiki.gds.user.provider.modular.sys.service;



import com.wiki.gds.base.database.common.BaseService;
import com.wiki.gds.user.facade.sys.model.Role;

import java.util.List;
import java.util.Map;

public interface RoleService extends BaseService<Role> {

     List<Map> findUserRoleByUid(Long uid);

     /**
      * 给角色授权资源
      * @param role
      * @param ids
      * @return
      */
     Boolean  AuthRoleResource(Long role,String[]ids);

     /**
      *
      * @param rid
      * @return
      */
     List<Map> roleResources(Long rid);


     List<Map> roleSelect();

}
